const { _request, _uploadFile } = require('../utils/request');
export function queryWorkOrders(params) {
  return _request({
    url: '/app/workOrder/queryWorkOrders',
    params
  })
}

export function queryUserListByCondition(params) {
  return _request({
    url: '/app/workOrder/queryUserListByCondition',
    params
  })
}

export function queryAssetsListByCondition(params) {
  return _request({
    url: '/app/workOrder/queryAssetsListByCondition',
    params
  })
}

export function uploadImg(params) {
  return _uploadFile({
    url: '/app/workOrder/uploadImg',
    params
  })
}

export function uploadSignInImg(params) {
  return _uploadFile({
    url: '/app/workOrder/uploadSignInImg',
    params
  })
}

export function addWorkOrder(params) {
  return _request({
    url: '/app/workOrder/addWorkOrder',
    params
  })
}

export function addSupplementaryWorkOrder(params) {
  return _request({
    url: '/app/workOrder/addSupplementaryWorkOrder',
    params
  })
}

export function updateWorkOrder(params) {
  return _request({
    url: '/app/workOrder/updateWorkOrder',
    params
  })
}

export function queryMaintainerListByAssetsId(params) {
  return _request({
    url: '/app/workOrder/queryMaintainerListByAssetsId',
    params
  })
}

export function queryAssetsOptionsByAssetsTypeId(params) {
  return _request({
    url: '/app/workOrder/queryAssetsOptionsByAssetsTypeId',
    params
  })
}

export function addServiceWorkOrder(params) {
  return _request({
    url: '/app/workOrder/addServiceWorkOrder',
    params
  })
}

export function queryWorkOrderById(params) {
  return _request({
    url: '/app/workOrder/queryWorkOrderById',
    params
  })
}

export function queryAssetsByUserAndType(params) {
  return _request({
    url: '/app/workOrder/queryAssetsByUserAndType',
    params
  })
}
